home *** CD-ROM | disk | FTP | other *** search
-
-
-
- PSGRIND User Commands PSGRIND
-
-
-
- NNAAMMEE
- psgrind - convert C source files to POSTSCRIPT format for
- printing
-
- SSYYNNOOPPSSIISS
- ppssggrriinndd [ _o_p_t_i_o_n_s ] [ _f_i_l_e_s ]
-
- DDEESSCCRRIIPPTTIIOONN
- _p_s_g_r_i_n_d reads in C source files, converts them to POSTSCRIPT
- format, and spools them for printing on a POSTSCRIPT
- printer. The different fonts used for the different syntac-
- tic elements of C source code may be specified on the com-
- mand line. _P_s_g_r_i_n_d is also much faster than any other grind
- program since it outputs a direct printer language without
- going through a normal document formatter as other pretty
- source printers must.
-
- The five syntactic categories that _p_s_g_r_i_n_d recognizes and
- displays in different ways are page headings (which are
- actually not part of the C source code), the ``body'' or
- main text, keywords, which are C reserved words, literal
- strings and comments. Normally, the heading and keywords
- are set in a bold Helvetica font, the comments in a slanted
- Helvetica font, the body in a normal Helvetica font and
- literal strings and character constants in Courier font.
-
- All the above fonts may be changed, see the --HH, --BB, --KK, --LL
- and --CC options. All these options take as their argument a
- font specfication. These font specifications have two
- parts: A font name as known to POSTSCRIPT (e.g., Times-
- Roman, Times-BoldItalic, Helvetica, Courier), and a point
- size (1 point = 1/72 inch-8 point is a good small font). So
- ``Courier-Bold8'' is 8 point Courier Bold, ``Helvetica12''
- is 12 point Helvetica.
-
- The environment variable PSGRIND may be used to specify
- defaults. The value of PSGRIND is parsed as a string of
- arguments _b_e_f_o_r_e the arguments that appear on the command
- line. For example setting the environment variable PSGRIND
- to the string ``-B Times-Roman12'' sets your default body
- font to 12 point Times Roman.
-
- The possible options are:
-
- --22 Sets two column mode.
-
- --11 Force one column mode.
-
- --gg Causes the fact that a file is garbage to be ignored.
- Normally, any file with more than a small number of
- non-printing characters is suspected of being garbage,
- and not printed-this option means ``print it anyway.''
-
-
-
- Sprite v1.0 1
-
-
-
-
-
-
- PSGRIND User Commands PSGRIND
-
-
-
- --oo If _p_s_g_r_i_n_d cannot find characters in a font, the miss-
- ing characters are listed.
-
- --pp _f_i_l_e
- Causes the POSTSCRIPT file to be written to the named
- file rather than being spooled for printing. As a spe-
- cial case, --pp -- will send the POSTSCRIPT to the stan-
- dard output.
-
- --rr Causes the output to be rotated 90 degrees on the page
- (landscape mode). This is good for output that
- requires a wide page or for program listings when used
- in conjunction with two column mode. ``psgrind -2r
- _f_i_l_e_s'' is a nice way to get program listings.
-
- --RR Force portrait (non-rotated) mode.
-
- --kk Enable page prefeed (if the printer supports it). This
- allows simple documents (e.g., program listings in one
- font) to print somewhat faster by keeping the printer
- running between pages.
-
- --ss _p_a_g_e_s_p_e_c
- Allows you to specify a range (or several ranges) of
- pages to be printed. _P_a_g_e_s_p_e_c is a string, not con-
- taining spaces, of the form ``pagerange[,pagespec]''.
- _P_a_g_e_r_a_n_g_e may be a single page number or a range of the
- form ``N-M'' which means print pages N through M. -N
- means print from the beginning of the docment to page
- N. M- means print from page M to the end of the docu-
- ment.
-
- --HH _f_o_n_t
- This allows the respecification of the font used to
- print running titles listing the source file name and
- current page number. The option argument to --HH, and
- the other font options, should be a font specification
- as described above.
-
- --BB _f_o_n_t
- This allows one to respecify the font to be used for
- the main body of the source, that not set specially in
- another font.
-
- --KK _f_o_n_t
- This option allows the respecification of the font used
- to show keywords as separate from normal body text.
-
- --LL _f_o_n_t
- This option allows the respecification of the font used
- to show string and character constants (literals)
- separate from normal body text.
-
-
-
- Sprite v1.0 2
-
-
-
-
-
-
- PSGRIND User Commands PSGRIND
-
-
-
- --CC _f_o_n_t
- This option respecifies the font used to print comment
- text to show its separateness from normal text.
-
- The following options are passed on as is to _l_p_r.
-
- --PP_p_r_i_n_t_e_r
- Causes the output to be sent to the named printer.
-
- --##_n Causes n copies of the output to be produced. The
- default is one.
-
- --mm Causes the printer daemon to send mail upon job comple-
- tion.
-
- --hh Suppress the printing of the burst page.
-
- --JJ _n_a_m_e
- Set the job name for use on the burst page. Otherwise,
- the name of the first input file will be used.
-
- EENNVVIIRROONNMMEENNTT
- PSGRIND
- string of options to be used by _p_s_g_r_i_n_d.
-
- METRICS
- path name of a directory to use instead of /usr/lib/ps
- for font metric files.
-
- PRINTER
- the name of a printer (as in the --PP option) for _l_p_r to
- use. If no --PP option is specified, _l_p_r will use this
- printer. If --PP is not specified and PRINTER is not
- defined in the environment, _p_s_g_r_i_n_d will spool to a
- printer named ``PostScript''.
-
- FFIILLEESS
- /usr/local/lib/ps/*.afm
- font metrics files.
-
- /usr/local/lib/ps/psgrind.pro
- prologue for _p_s_g_r_i_n_d POSTSCRIPT files.
-
- lpr Printer spooler
-
- SSEEEE AALLSSOO
- enscript(1), lpr(1)
-
- AAUUTTHHOORR
- John Coker,
- University of California, Berkeley
- This code is based on the _e_n_s_c_r_i_p_t utility from Adobe
-
-
-
- Sprite v1.0 3
-
-
-
-
-
-
- PSGRIND User Commands PSGRIND
-
-
-
- Systems, Inc.
-
- BBUUGGSS
- If you give the --pp argument after the file to be converted,
- _p_s_g_r_i_n_d will lie and tell you that the file has been put in
- the right place, when in fact it is in some obscure tem-
- porary file. Always give the --pp argument first.
-
- Long lines are not truncated in 2 column mode. Line trunca-
- tion may be off by a little bit as printer margins vary.
- There should be a ``wrap'' option and multiple (truncated or
- wrapped) columns.
-
- _P_s_g_r_i_n_d generates temporary files which are spooled for
- printing. The temporary file names are used by the spooling
- software (e.g., _l_p_q), rather than the symbolic job name
- passed to _l_p_r.
-
- NNOOTTEESS
- POSTSCRIPT is a trademark of Adobe Systems, Incorporated.
- Times is a trademark of Allied Corporation.
- Helvetica is a registered trademark of Allied Corporation.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Sprite v1.0 4
-
-
-
-